package com.qbw.app.module.common.activity;

import androidx.databinding.ViewDataBinding;
import android.view.View;

import com.http.okhttp.HttpTask;
import com.qbw.actionmanager.ActionManager;
import com.qbw.app.manager.GeneralManager;
import com.qbw.core.base.BaseActivity;
import com.qbw.customview.RefreshLoadMoreLayout;
import com.qbw.customview.titlebar.TitleBar;

/*
 *
 * @author QBW
 * @date 2019/8/23
 */
public abstract class CommonActivity<B extends ViewDataBinding> extends BaseActivity<B> implements ActionManager.Listener, TitleBar.Listener, RefreshLoadMoreLayout.CallBack, HttpTask.CallBack, View.OnClickListener {

    protected GeneralManager mGeneralManager = GeneralManager.getInstance();
    protected ActionManager mActionManager = ActionManager.getInstance();

    @Override
    public void onLeftAreaClick() {
        finish();
    }

    @Override
    public void onRightAreaClick() {

    }

    @Override
    public void onCenterAreaClick() {

    }


    @Override
    public void onHttpStart(HttpTask httpTask) {

    }

    @Override
    public void onHttpSuccess(HttpTask httpTask, Object entity) {

    }

    @Override
    public void onHttpFailed(HttpTask httpTask, int errorCode, String message) {

    }

    @Override
    public void onRefresh() {

    }

    @Override
    public void onLoadMore() {

    }

    @Override
    public void onClick(View v) {

    }

    @Override
    public void onActionTriggered(Object action) {

    }
}
